function Person(name, age) {
  // 属性
  this.name = name
  this.age = age
  // 实例方法
  this.run = function() {
    console.log(this.age + '的' + this.name + '在运动');
  }
}
Person.prototype.sex = "男"
Person.prototype.work = function() {
  console.log(this.name+'在工作')
}

function Web(name, age, other) {
  // Person.call(this, name, age)
  // arguments[object Arguments]
  let args = [...arguments]  //赵四 20 other
  console.log('arguments' + args)
  this.other = other

  // Person.apply(this, arguments)
  Person.apply(this, [name, age])
}

Web.prototype = Person.prototype;

var w = new Web('赵四', 20, 'other')
w.run()  //20的赵四在运动
w.work()  //赵四在工作
